package com.shadow.message;

import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.stereotype.Component;

@Component
@EnableBinding(InputMsgBinding.class)
public class ReceverMessage {
    @StreamListener("inputMsg")
    public void post(Object msg){
        System.out.println("msg==========="+msg);
    }
}
